package com.luoshenshen.http;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpServerCodec;

/**
 * @author ShenshenLuo
 * @date 2025/3/28 22:36
 **/
public class HttpInitChannel extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast("hsc", new HttpServerCodec());
        ch.pipeline().addLast("hh", new HttpHandler());
    }
}
